#ifndef CALLCONNECT_H
#define CALLCONNECT_H

#include <QObject>
#include <QString>
#include <QTcpServer>
#include <QTcpSocket>   //tcp，no using

class CallConnect : public QObject
{
    Q_OBJECT
public:
    explicit CallConnect(QObject *parent = nullptr);

signals:

public slots:
    void slot_initCallConnect();

private slots:
    void slot_newConnection();

    void slot_readData();

private:
    int analysisData(const QByteArray &data);

private:
    QTcpServer *m_tcpServer = nullptr;
    QTcpSocket *m_tcpSocket = nullptr;
};

#endif // CALLCONNECT_H
